﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Sharp.Domain.PlatformBoundedContext.MasterDataModule.Aggregates;
using Sharp.Domain.Model;
using Sharp.Infrastructure;

namespace Sharp.Domain.PlatformBoundedContext.PersonModule.Aggregates
{
    /// <summary>
    /// 工作岗位
    /// </summary>
    public partial class Job : AggregateRoot, IStandardEntity, IStandardState
    {
        /// <summary>
        /// 初始化工作岗位
        /// </summary>
        public Job()
        { 
        }
 

        /// <summary>
        /// 名称
        /// </summary>
        /// <value>标题</value>
        [Display(Name = "名称")]
        public string Title { get; set; }
        /// <summary>
        /// 归属
        /// </summary>
        /// <value>父Id</value>
        [Display(Name = "归属")]
        public Guid? ParentId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <value>排序的值</value>
        public int? OrderIndex { get; set; }
        ///// <summary>
        ///// 职级
        ///// </summary>
        //public Grade Grade { get; set; }

        /// <summary>
        /// 入职资质
        /// </summary>
        public string Qualifications { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
 
        /// <summary>
        /// 添加日期
        /// </summary>
        /// <value>添加日期</value>
        public System.DateTime? CheckInTime { get; set; }
        /// <summary>
        /// 录入员的id
        /// </summary>
        /// <value>录入员的id</value>
        public System.Guid? CheckInUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        /// <value>修改时间</value>
        public System.DateTime? ModifiTime { get; set; }
        /// <summary>
        /// 修改数据的用户Id
        /// </summary>
        /// <value>修改数据的用户Id</value>
        public System.Guid? ModifiedUserId { get; set; }
 
        /// <summary>
        /// 职级
        /// </summary>
        public string  GradeCode { get; set; }

        public EntityStateOperate EntityState
        {
            get; set; }
    }
}